package com.hailin.pigfeign.service;

import com.hailin.pigapi.common.Result;
import com.hailin.pigapi.model.auth.UserInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("pig-auth")
public interface PigAuthService {

    @GetMapping("/pigAuth/getUserById")
    Result<UserInfoDto> getUserById(@RequestParam("userId") String userId);
}
